import { Injectable } from '@nestjs/common';
import * as mockjs from 'mockjs';
import config from './mock.config';

@Injectable()
export class MockService {
  // 登录
  login() {
    return mockjs.mock(config.login);
  }

  // 获取详情信息
  getInfo() {
    return mockjs.mock(config.getInfo);
  }

  // 列表查询接口
  listSearch() {
    return mockjs.mock(config.listSearch);
  }

  // 退出登录接口
  logout() {
    return mockjs.mock(config.logout);
  }
}
